// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueTouch from 'vue-touch'
import vueg from 'vueg'
import 'vueg/css/transition-min.css'

import http from '@/assets/js/axios.js';// axios数据交互
import api from '@/assets/js/api';
import store from '@/store/index';// 状态管理

Vue.use(vueg, router, {
  tabs: [{
    name: 'page1'
  }, {
    name: 'page2'
  }, {
    name: 'page3'
  }]
})
Vue.use(VueTouch, {name: 'v-touch'})
Vue.prototype.http = http;
Vue.prototype.api = api;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
